package sanshui.system.trade.factory.trade.indicator;

public enum IndicatorCode {

    M5(Type.M_N, "5日平均价格", 5),
    M10(Type.M_N, "10日平均价格", 10),
    ATR10(Type.ATR, "10日平均真实波动", 10),
    ATR14(Type.ATR, "14日平均真实波动", 14),
    TR(Type.TR, "真实波动", 1);

    @Override
    public String toString() {
        return name.name() + "-" + message + "-" + rate;
    }

    public String key(){
        return name.name() + rate;
    }

    public enum Type{
        M_N, TR, ATR;
    }

    private Type name;
    private String message;
    private int rate;

    private IndicatorCode(Type name, String message, int rate){
        this.name = name;
        this.message = message;
        this.rate = rate;
    }

    public Type getName() {
        return name;
    }


    public String getMessage() {
        return message;
    }

    public int getRate() {
        return rate;
    }


}
